<template>
  <view class="page">
    <CCNavbar :fixed="false" title="CC 组件库" leftIcon="" />

    <view class="content">
      <image class="logo" src="/static/logo.png"></image>
      <view class="text-area">
        <text class="title">{{ title }}</text>
      </view>

      <view class="entry-grid">
        <view class="entry-item" @click="goNavbarDemo">
          <text class="entry-text">navbar 功能展示</text>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
import CCNavbar from '@/components/CCNavbar.vue'
export default {
  components: { CCNavbar },
  data() {
    return {
      title: '首页：最普通 Navbar + 单一入口',
    }
  },
  onLoad() {},
  methods: {
    goNavbarDemo() {
      uni.navigateTo({ url: '/pages/navbar-demo/index' })
    }
  },
}
</script>

<style scoped>
.page {
  min-height: 100vh;
  background-color: #f8f8f8;
}
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 12px 24px;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin-top: 12px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
}

.text-area {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.title {
  font-size: 36rpx;
  color: #333;
}

.nav-right-text {
  font-size: 14px;
  color: #303133;
}

.entry-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  margin-top: 8px;
}

.entry-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.entry-text {
  font-size: 14px;
  color: #555;
}
</style>
